const getters = {
    sidebar: state => state.app.sidebar, //获取侧边菜单的配置
    device: state => state.app.device, //获取设备类型
    token: state => state.user.token, //获取token
    avatar: state => state.user.avatar, //获取头像
    name: state => state.user.name //获取用户名
};
export default getters;